<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>前端模块化</title>
	</head>
	<body>
		
		<!-- 一个js文件就是一个模块 -->
		<script src="js/module1.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript">
			module1.m1();
			module1.m2();
			console.log(module1);
		</script>
	</body>
</html>
